async: !ruby/object:Api::Async
  operation: !ruby/object:Api::Async::Operation
    kind: 'compute#operation'
    path: 'name'
    base_url: 'projects/{{project}}/zones/{{zone}}/operations/{{op_id}}'
    wait_ms: 1000
<% unless ctx[:timeouts].nil? -%>
    timeouts: !ruby/object:Api::Async::Operation::Timeouts
<%= lines(indent(ctx[:timeouts].map { |k, v| "#{k}: #{v}" }, 6)) -%>
<% end -%>
  result: !ruby/object:Api::Async::Result
    path: 'targetLink'
  status: !ruby/object:Api::Async::Status
    path: 'status'
    complete: 'DONE'
    allowed:
      - 'PENDING'
      - 'RUNNING'
      - 'DONE'
  error: !ruby/object:Api::Async::Error
    path: 'error/errors'
    message: 'message'
